home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / defras.z / defras
Encoding:
Text File  |  2002-10-03  |  5.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ddddeeeeffffrrrraaaassss((((3333GGGG))))                                                          ddddeeeeffffrrrraaaassss((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ddddeeeeffffrrrraaaassss - defines a raster font
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ddddeeeeffffrrrraaaassss((((nnnn,,,, hhhhtttt,,,, nnnncccc,,,, cccchhhhaaaarrrrssss,,,, nnnnrrrr,,,, rrrraaaasssstttteeeerrrr))))
  13.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn,,,, hhhhtttt,,,, nnnncccc,,,, nnnnrrrr
  14.      iiiinnnntttteeeeggggeeeerrrr****2222 cccchhhhaaaarrrrssss((((4444****nnnncccc)))),,,, rrrraaaasssstttteeeerrrr((((nnnnrrrr))))
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _n        expects the constant that you want to use as the identifier for
  18.               this raster font.  This constant is used as an index into a font
  19.               table. The default font, 0, is a fixed-pitch font with a height
  20.               of 15 and width of 9.  Font 0 cannot be redefined.
  21.  
  22.      _h_t       expects the maximum height (in pixels) for a character.
  23.  
  24.      _n_c       expects the number of characters in this font.
  25.  
  26.      _c_h_a_r_s    expects an array of four by _n_c 16-bit elements. Because you will
  27.               need to write to individual bytes within the second and third
  28.               elements of the _c_h_a_r_s array, you should declare an eight by _n_c
  29.               array of one byte elements.  You can then EQUIVALENCE the new
  30.               array to the _c_h_a_r_s array.
  31.  
  32.               FFFFiiiirrrrsssstttt eeeelllleeeemmmmeeeennnntttt of each row expects the element number of _r_a_s_t_e_r
  33.               at which starts the bitmap for this character.  The element
  34.               numbers start at zero.
  35.  
  36.               SSSSeeeeccccoooonnnndddd eeeelllleeeemmmmeeeennnntttt,,,, hhhhiiiigggghhhh bbbbyyyytttteeee expects the number of columns in the
  37.               bitmap that contain set bits (character width). SSSSeeeeccccoooonnnndddd eeeelllleeeemmmmeeeennnntttt,,,,
  38.               lllloooowwww bbbbyyyytttteeee expects the number of rows (character height) in the
  39.               bitmap of the character (including ascender and descender).
  40.  
  41.               TTTThhhhiiiirrrrdddd eeeelllleeeemmmmeeeennnntttt,,,, hhhhiiiigggghhhh bbbbyyyytttteeee expects number of bitmap columns
  42.               between the start of the character's bitmap and the start of the
  43.               character.  TTTThhhhiiiirrrrdddd eeeelllleeeemmmmeeeennnntttt,,,, lllloooowwww bbbbyyyytttteeee expects the number rows
  44.               between the character's baseline and the bottom of the bitmap.
  45.               For characters with descenders (e.g., _g) this value is a
  46.               negative number.  For characters that rest entirely on the
  47.               baseline, this value is zero.
  48.  
  49.               FFFFoooouuuurrrrtttthhhh eeeelllleeeemmmmeeeennnntttt expects the bit width of the bitmap for the
  50.               character. This value tells the system how many bits there are
  51.               in each row of the bitmap for this character.
  52.  
  53.      _n_r       expects the number of 16-bit integers in _r_a_s_t_e_r.
  54.  
  55.      _r_a_s_t_e_r   expects a one-dimensional array that contains all the bit maps
  56.               (masks) for the characters in the font.  Each element of the
  57.               array is a 16-bit integer and the elements are ordered left to
  58.               right, bottom to top.  When interpreting each element, the bits
  59.               are left justified within the character's bounding box.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ddddeeeeffffrrrraaaassss((((3333GGGG))))                                                          ddddeeeeffffrrrraaaassss((((3333GGGG))))
  71.  
  72.  
  73.  
  74.               The maximum row width for a single bitmap is not limited to the
  75.               capacity of a single 16-bit integer array element.  The rows of
  76.               a bitmap may span more than one array element.  However, each
  77.               new row in the character bitmap must start with its own array
  78.               element.  Likewise, each new character bitmap must start with
  79.               its own array element. The system reads the row width and
  80.               starting location for a character bitmap from the in the _c_h_a_r_s
  81.               array.
  82.  
  83. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  84.      ddddeeeeffffrrrraaaassss defines a raster font.  To replace a raster font, specify the
  85.      index of the previous font as the index for the new font.  To delete a
  86.      raster font, define a font with no characters. Patterns, cursors, and
  87.      fonts are available to all windows when using multiple windows.
  88.  
  89. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  90.      charst, cmov, font, getcpo, getdes, getfon, gethei, strwid
  91.  
  92. NNNNOOOOTTTTEEEE
  93.      This routine is available only in immediate mode.
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.